projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345bba0
)
ubus: avoid dumping interface state with NULL message
author
Jo-Philipp Wich
<
[email protected]
>
Thu, 26 Jul 2018 12:26:37 +0000
(14:26 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Thu, 26 Jul 2018 12:26:37 +0000
(14:26 +0200)
Invoking ubus methods with NULL message is not supported anymore, so
make sure that network.interface/dump is called with an empty blob buffer
argument.
Signed-off-by: Jo-Philipp Wich <
[email protected]
>
src/ubus.c
patch
|
blob
|
history
diff --git
a/src/ubus.c
b/src/ubus.c
index 973ae5a8b19ed23c30a582f6921afc27ed112ca9..5be6bbef41f60e44ab75ec9bfaf39e1637e43978 100644
(file)
--- a/
src/ubus.c
+++ b/
src/ubus.c
@@
-225,7
+225,9
@@
static void update_netifd(bool subscribe)
ubus_subscribe(ubus, &netifd, objid);
ubus_abort_request(ubus, &req_dump);
- if (!ubus_invoke_async(ubus, objid, "dump", NULL, &req_dump)) {
+ blob_buf_init(&b, 0);
+
+ if (!ubus_invoke_async(ubus, objid, "dump", b.head, &req_dump)) {
req_dump.data_cb = handle_dump;
ubus_complete_request_async(ubus, &req_dump);
}